PDA

View Full Version : Post-install Instructions


SeanFromIT
10-25-2007, 09:09 PM
I am new to PHP Weathermap. I created a map and added hosts/links to it and turned on SNMP on my switch, but my map stays at 0%. The service I have selected is "Ping" - should I instead add a check_centreon_snmp service? If so, which one and what hosts should the service be added to - just the switch or also the servers?

DonKiShoot
10-25-2007, 09:34 PM
Work only with check_centreon_snmp_traffic & ods

SeanFromIT
10-25-2007, 09:46 PM
Thank you. When testing at the command line, I receive:
ERROR: Interface Status Request : Received noSuchName(2) error-status at error-index 1

I assume this has to do with the interface number argument, -i. Is this my local interface, or an interface on the SNMP-enabled switch?

SeanFromIT
10-25-2007, 10:22 PM
I was able to get by this by specifying interface 1. A command line test runs fine now, responds with the right traffic in/out numbers.

However, my SNMP service check in Centreon has went into Unknown status:
Unknown - /tmp/oreon_traffic_if1_192.168.1.1 !

How do I fix this?

Update: I have a feeling this is because I ran it by command line as root first, generating this tmp file as root, which then could not be used by the nagios user. I changed permissions and will let you know.

SeanFromIT
10-25-2007, 11:23 PM
Okay, so the check is working, I got Centreon' Views to graph it, but PHP Weathermap is still showing 0%. I set the link to show the SNMP Traffic check. Is there something else that I'm missing? Why would it stay at 0% when ODS has data on the check?

sdouce
11-05-2007, 12:36 PM
For your information ....

I could create map but never generate it ... be sure to have in your php.ini file :

register_argc_argv = On

Or it does not work ...

SeanFromIT
11-08-2007, 05:27 PM
I can confirm that register_argc_argv = On. I can also see the data being graphed in Centreon' Views (traffic_in, traffic_out) perfectly. I am using the check_centreon_traffic check (which points to check_centreon_snmp_traffic). Is there something else I'm supposed to be doing to get this to show up in the PHP Weathermap module?

SeanFromIT
11-10-2007, 12:00 AM
I finally got it to work today. Here is the solution:

1) Match up the interfaces/ports. "0" is probably not the right interface index ;-)
2) Fix your check_centreon_traffic to look at that interface index on each host.